/*
 * @Author: 李惠婵 lihuichan@yxhyidc.com
 * @Date: 2022-07-07 15:38:43
 * @LastEditors: 李惠婵 lihuichan@yxhyidc.com
 * @LastEditTime: 2022-07-07 15:47:02
 * @FilePath: \robot-webd:\project\rural-revitalization-web\src\api\system\dataSource.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
//查询列表
export function dataSourceList(query) {
    return request({
        url: '/system/dataSource/list',
        method: 'get',
        params: query
    })
}
//新增
export function addDataSource(data) {
    return request({
        url: '/system/dataSource',
        method: 'post',
        data: data
    })
}
// 修改
export function updateDataSource(data) {
    return request({
        url: '/system/dataSource',
        method: 'put',
        data: data
    })
}
// 删除
export function delDataSource(ids) {
    return request({
        url: '/system/dataSource/' + ids,
        method: 'delete'
    })
}